﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using NLUNZ.Business;

namespace NLUNZ.UserControls
{
    public partial class TrackingItemEdit : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if(!IsPostBack){
            resultItem.Visible = false;
            emptyItem.Visible = false;
            }else
            {
                if (txtDeliverySearchBox.Text.Trim().Length == 0)
                {
                    emptyItem.Visible = true;
                    resultItem.Visible = false;
                    return;
                }
                resultItem.Visible = true;
                emptyItem.Visible = false;
            }
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            if(txtDeliverySearchBox.Text.Trim().Length ==0)
            {
                emptyItem.Visible = true;
                resultItem.Visible = false;
                return;
            }
            resultItem.Visible = true;
            emptyItem.Visible = false;
        }

        protected void btnSubmit_Click(object sender, EventArgs e)
        {
        }
    }
}